package br.com.games.pyx.mosaico;

import org.anddev.andengine.opengl.texture.region.TextureRegion;

class ParteAnim {
	
//	int linha;
//	int coluna;
	TextureRegion frames[];
	int duracao;
	int frame = 0;
	
	private float pass;
	
	public void update(float elapsed) {
		pass += elapsed;
		
		if(pass >= duracao) {
			pass = pass - (duracao/1000);
			frame++;
		}
		
		if(frame >= frames.length) {
			frame = 0;
		}		
	}
}